<section>
  <div class="presales-all" *ngIf="ifget">
    <div class="presales-status" *ngIf="tagData.data.display">
      <div class="presales-status-left">
        <div class="presales-status-state">
          <div class="presales-status-state-yuanquan"></div>
        </div>
        <div class="presales-status-text">{{tagData.data.display.content}}</div>
      </div>
      <div class="presales-status-right" *ngIf="tagData.data.expand">
        <div class="button" appDebounceClick (debounceClick)="operationclick()" *ngIf="tagData.data.button&&tagData.data.button.visible==true">
          {{tagData.data.button.label}}</div>
          <div *ngIf="tagData.data.expand" style="float: left;">
            <div class="fold" appDebounceClick (debounceClick)="showclick()"  *ngIf="tagData.data.expand.length!==0">
              <img [src]="foldimg" />
            </div>
          </div>
          <!--  <div class="fold" appDebounceClick (debounceClick)="showclick()"><img [src]="foldimg" /></div> -->
      </div>
      <!-- actionsheet  btn-->
      <div class="presales-status-right" *ngIf="tagData.data.messageLink" >
        <div class="button" appDebounceClick (debounceClick)="showActionSheet(item)" *ngFor="let item of tagData.data.messageLink">
          {{item.label}}
        </div>
      </div>

    </div>
    <div class="presales-history" *ngIf="isshowhistory">
      <div class="presales-history-list" *ngFor="let item of tagData.data.expand;let i=index">
        <div style="display: flex;">
          <div class="presales-history-yuanquan"></div>
          <div class="presales-history-time">{{item.content}}</div>
        </div>
      </div>
    </div>
  </div>
  <div class="presales-all" *ngIf="!ifget">
    <div class="presales-history2">
      <div class="presales-history-list" *ngFor="let item of tagData.data.expand;let i=index">
        <div class="presales-history-listitem" *ngIf="isDataShow || i === 0" appDebounceClick (debounceClick)="onReceiveChange(i)" style="display: flex; width: 100%;">
          <div class="presales-history-yuanquan"></div>
          <div class="presales-history-time">{{item.content}}</div>
          <div *ngIf="!tagData.data.display && tagData.data.button && i === 0"><div class="button" *ngIf="tagData.data.button&&tagData.data.button.visible==true">
            <span appDebounceClick (debounceClick)="operationclick()">{{tagData.data.button.label}}</span></div></div>
          <div *ngIf="tagData.data.expand.length>1"><div class="fold" *ngIf="i === 0"><img [src]="foldimg" /></div></div>
          <!--<div class="fold" *ngIf="i === 0"><img [src]="foldimg" /></div> -->
        </div>
      </div>
    </div>
  </div>
</section>
